import { Component, OnInit } from '@angular/core';
import { DetailService } from "./detail.service";

@Component({
  selector: 'app-detail',
  templateUrl: './detail.component.html',
  styleUrls: ['./detail.component.scss'],
  providers: [DetailService]
})
export class DetailComponent implements OnInit {
  // 用于接收单个对象
  public item: any = {};

  constructor(
    public detailService: DetailService
  ) { }

  ngOnInit() {
  }

}
